// 示例
{/* <HcpTipModal
  title="删除资源池"
  visible={showDeleteModal2}
  onFinish={() => { }}
  onCancel={() => setShowDeleteModal2(false)}
  content={
    <>
      <div className="main-content">
        <span className="iconfont iconfont-yellow icon-confirm-question" />
        <span className="main-content-info">您尚未开通此功能的操作权限，如需操作，请联系管理员申请</span>
      </div>
      <div className="sub-content gray">新创建的磁盘或卸载后扩容的磁盘在挂载成功后，必须要初始化。已经初始化过的磁盘不需要初始化。</div>
    </>
  }
/> */}
import React, { useState, useEffect } from "react";
import { Button, Modal, Input, Form } from "antd";
import './index.less'
const HcpTipModal = ({ title, visible, onFinish, onCancel, loading = false,
  okText = "确定", cancelText = "取消", content }) => {
  return (
    <Modal
      className="hcp-tip-modal hcp-modal-sm"
      title={title}
      visible={visible}
      onCancel={onCancel}
      footer={null}
      destroyOnClose
      maskClosable={false}
    >
      <div className="hcp-tip-modal-body">
        {content}
      </div>
      <div className="hcp-tip-modal-footer">
        {cancelText ? <Button onClick={onCancel}>{cancelText}</Button> : ""}
        <Button style={{ marginLeft: 15, }} type="primary" onClick={onFinish} loading={loading}>{okText}</Button>
      </div>
    </Modal>
  );
};
export default HcpTipModal;